<!--
  This template loads for the 'tab.friend-detail' state (app.js)
  'friend' is a $scope variable created in the FriendsCtrl controller (controllers.js)
  The FriendsCtrl pulls data from the Friends service (service.js)
  The Friends service returns an array of friend data
-->
<ion-view devin-hide-tabs="true" view-title="创建销售意向">
  <ion-nav-buttons side="right">
      <span class="nav-right-button" ng-click="submitIntention()">保存</span>
  </ion-nav-buttons>
  <ion-content>
    <ion-item class="item item-padding-left">
      <div class="item-bg item">
        <img ng-src="img/icon-people.png">
        <span  class="project-spms-label ">客户名称</span><span style="color: #ff3b30">*</span>
        <input type="text" style="min-width: 45%; max-width: 45%;" class="item-input project-spms-info-input ng-valid ng-not-empty ng-dirty ng-valid-parse ng-touched"
               placeholder="请填写" ng-model="projectIntention.customerName" ng-blur="setContacts(projectIntention.customerName)">
      </div>
      <devin-task-item require="true" icon="img/icon1.png" label="客户联系人" canchoice="false" hidearrow="true" content="projectIntention.contacts"></devin-task-item>
      <devin-task-item require="true" icon="img/icon-call.png" inputtype="tel" label="联系电话" canchoice="false" hidearrow="true" content="projectIntention.contactsTel"></devin-task-item>
      <devin-task-item require="true" ng-click="goChoiceWithRegion();" icon="img/icon-building.png" label="所属地区" canchoice="true" choicecontent="{{projectIntention.regionDesc}}"></devin-task-item>
      <devin-task-item require="true" icon="img/icon-building.png" placetext="{{electricity}}" label="详细地址" canchoice="false" hidearrow="true" content="projectIntention.address"></devin-task-item>
      <devin-task-item require="true" ng-click="goChoice('PROJECT_TYPE',projectIntention.projectType);" icon="img/icon-project-type.png" label="项目类型" choicecontent="{{projectIntention.projectTypeDis}}"></devin-task-item>
      <devin-task-item require="true" ng-click="choicePoor();" icon="img/icon2.png" widthpre="30" label="是否扶贫项目" canchoice="true"  choicecontent="{{projectIntention.supportingPoorFlagDesc}}"></devin-task-item>
      <devin-task-item require="true" ng-show="projectIntention.supportingPoorFlag == 'Y'" icon="img/icon1.png" label="乡" canchoice="false" hidearrow="true" content="projectIntention.town"></devin-task-item>
      <devin-task-item require="true" ng-show="projectIntention.supportingPoorFlag == 'Y'" icon="img/icon1.png" label="镇" canchoice="false" hidearrow="true" content="projectIntention.village"></devin-task-item>
      <div ng-click="goInputText(projectIntention, 'remark')" style="line-height: 50px;border-bottom:0.01px solid #CCCCCC!important">
          <img class="check-receive-imgcss" ng-src="img/icon-pen.png">
          <span class="check-receive-labeles" style="padding-left: 18px;!important;">项目备注</span>
          <i style="font-size: 14px!important; margin-right: -4px;!important;float: right;padding-right: 20px;color: #cccccc" class="ion-chevron-right"></i>
          <span class="check-receive-label" ng-style="{'color':projectIntention.remark ? '#666666' : '#aaaaaa'}" style="margin-right: 10px!important;">{{!projectIntention.remark ? "请填写" : projectIntention.remark}}</span>
      </div>
      <devin-task-item ng-hide="true" icon="img/icon1.png" label="经销商" canChoice="false" content="projectIntention.distributorCode"></devin-task-item>
    </ion-item>
  </ion-content>
</ion-view>
